package jwj8508.j2ee.basic.projectv10.dao;

import jwj8508.j2ee.basic.projectv5.model.MemberVO;
import mybatis3.helper.Pv10SqlSessionFactory;

import org.apache.ibatis.session.SqlSession;

public class MemberDAO {
	public static boolean login(MemberVO m) {
		boolean result = false;
		SqlSession sess = null;
		try {
			sess = Pv10SqlSessionFactory.openSession();
			sess.selectOne("MemberMapper.loginMember", m);
			result = true;			
		} finally {
			sess.close();
		}
		return result;
		
	}
}
